/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kwic;

import java.util.List;

/**
 *
 * @author Tom
 */
public class Alphabetizer {
    private CircularShift circularShift;
    private List<String> sorted;
    public Alphabetizer(CircularShift circularShift) {
        this.circularShift = circularShift;
    }
    public void make(){
        List<String> lines=circularShift.getLines();
        java.util.Collections.sort(lines,String.CASE_INSENSITIVE_ORDER);
        sorted=lines;
    }

    public List<String> getSorted() {
        return sorted;
    }

    public void setSorted(List<String> sorted) {
        this.sorted = sorted;
    }
    
}
